package com.item.service;

import com.item.dao.SubjectMapper;
import com.item.dao.model.Subject;
import com.item.dao.model.SubjectExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SubjectService {
    @Autowired
    private SubjectMapper subjectMapper;

    private static final Logger logger = Logger.getLogger(SubjectService.class);

    public int countByExample(SubjectExample example) {
        return this.subjectMapper.countByExample(example);
    }

    public Subject selectByPrimaryKey(String id) {
        return this.subjectMapper.selectByPrimaryKey(id);
    }

    public List<Subject> selectByExample(SubjectExample example) {
        return this.subjectMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.subjectMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Subject record) {
        return this.subjectMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Subject record) {
        return this.subjectMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(SubjectExample example) {
        return this.subjectMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(Subject record, SubjectExample example) {
        return this.subjectMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(Subject record, SubjectExample example) {
        return this.subjectMapper.updateByExample(record, example);
    }

    public int insert(Subject record) {
        return this.subjectMapper.insert(record);
    }

    public int insertSelective(Subject record) {
        return this.subjectMapper.insertSelective(record);
    }
}